﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Input;
using ApartmentBillsManager.Start.Common;
using ApartmentBillsManager.Start.Manager.Interfaces;

namespace ApartmentBillsManager.Start.Manager
{
    class WelcomeContent : IContent
    {
        public event Action<object> CreateNewApartmentEvent;
        public event Action<object> LoadExistingApartmentEvent;

        public void CreateNewApartment(object obj)
        {
            if (CreateNewApartmentEvent != null)
                CreateNewApartmentEvent.Invoke(new object());
        }

        public void LoadExistingApartment(object obj)
        {
            if (LoadExistingApartmentEvent != null)
                LoadExistingApartmentEvent.Invoke(new object());
        }

        public ICommand CreateNewApartmentCommand
        {
            get { return new DelegateCommand(CreateNewApartment); }
        }

        public ICommand LoadExistingApartmentCommand
        {
            get { return new DelegateCommand(LoadExistingApartment); }
        }
    }
}
